Ian Campbell [Tue, 13 Mar 2007 10:02:45 +0000 (10:02 +0000)]
Update defconfigs for new XEN_COMPAT_300004 option.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:51 +0000 (09:52 +0000)]
[XM-TEST] vTPM test changes
Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore
(since some time on the weekend). Need to add 'COLUMNS=n'.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:11 +0000 (09:52 +0000)]
docs: update some todo items.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ian Campbell [Tue, 13 Mar 2007 09:07:55 +0000 (09:07 +0000)]
[LINUX] Fix typo so 3.0.4 compatability works.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Tim Deegan [Mon, 12 Mar 2007 18:04:04 +0000 (18:04 +0000)]
[HVM] Save/restore: update HVM detection in save/restore code in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:55:02 +0000 (14:55 +0000)]
linux: Adjust memory allocation condition in netback to reduce memory
pressure on Xen and avoid unnecessarily stalling receives.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:52:11 +0000 (14:52 +0000)]
xen: Generic linear pagetable support for x86 PV guests.
Any linear mapping is permitted, except for L3-PAE-maps-L3-PAE,
which makes no sense even on native.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:47:00 +0000 (14:47 +0000)]
x86: PAE linear page tables.
While full linear page table support makes little sense (and would be
more complicated to implement), partial linear page table support is
almost identical to that in non-PAE, and is used (at least) by NetWare.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:43 +0000 (14:11 +0000)]
linux: No need to manually bring VCPUs online across 'fast' save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:07 +0000 (14:11 +0000)]
xen: Set VGCF_online flag appropriately for getvcpucontext.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 13:53:43 +0000 (13:53 +0000)]
x86: Add VGCF_onlien flag to vcpu_guest_context.
Change common Xen code to start all VCPUs (except idle ones)
offline. Change arch code to deal with this.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:15:56 +0000 (11:15 +0000)]
AMD HVM: Exit hvmloader via a normal jump-to-realmode code sequence.
Strip out all SVM-special hypercall code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:04:34 +0000 (11:04 +0000)]
The Xen console intercepts ^O and prevents it from propagating
through to the guest. However, ^O is a useful key in bash and in
Emacs. This patch changes the console to pass a single ^O
through to the guest when it is pressed twice.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:03:07 +0000 (11:03 +0000)]
Fix valid_phys_addr_range() prototype of xen /dev/mem.
The second argument is size_t, not size_t *.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:00:44 +0000 (11:00 +0000)]
xen: Fix emulator to use default segment SS for ESP/EBP references.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Mon, 12 Mar 2007 10:10:42 +0000 (10:10 +0000)]
[HVM] Remove debugging printout of BIOS boot vector
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Mon, 12 Mar 2007 09:44:34 +0000 (09:44 +0000)]
[HVM] Speed up bulk p2m operations such as domain creation
by not flushing the shadows more often than is needed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Sun, 11 Mar 2007 22:42:22 +0000 (22:42 +0000)]
Fix typo in cset 14341:
0affe03ee985 that broke migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 23:22:00 +0000 (23:22 +0000)]
Added an VM_HVM_REQUIRED error code, and use it on VM.start.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 21:48:22 +0000 (21:48 +0000)]
Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
a single VM.platform String -> String Map.
Propogate this change through to XendDomainInfo and image so that the
backwards compatibility is handled by XendConfig.
Make PCI_bus a read-write field.
Added C bindings for these changes also.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 21:43:07 +0000 (21:43 +0000)]
Remove obsolete tpm_backend entry.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 21:41:58 +0000 (21:41 +0000)]
Fix VM.set_actions_after_{reboot,shutdown}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 20:20:24 +0000 (20:20 +0000)]
Fix "no such domain" error message from domain_lookup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 20:18:17 +0000 (20:18 +0000)]
Remove some excessive debug logging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 19:57:35 +0000 (19:57 +0000)]
Don't show the usage message for "domain does not exist" errors.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 16:38:18 +0000 (16:38 +0000)]
Improve xm shell tab completion.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 14:57:11 +0000 (14:57 +0000)]
Add vcpus_max and vcpus_at_startup values to the example VM creation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 14:41:06 +0000 (14:41 +0000)]
Fix get_val_as_string so that it does not truncate integers.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 10 Mar 2007 14:16:52 +0000 (14:16 +0000)]
Allow empty structs to represent empty Maps.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:38:54 +0000 (17:38 +0000)]
xen ppc: Guests need the default 100Hz ticker.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:01:21 +0000 (17:01 +0000)]
pci back: Various fixes.
- remove superfluous call to pciback_field_is_dup()
- fix a variable type mismatch in pciback_field_is_dup()
- make readability improvements by using the OFFSET macro
- revises quirk data output via the sysfs quirks node so that
- displayed offset information includes base_offset.
Thanks to Jambunathan K. for giving such specific bug diagnosis.
Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:59:57 +0000 (16:59 +0000)]
Simple fix to the man page for xm block-attach.
It currently says to use "ro" or "rw" for the mode, when it seems,
empirically, to take "r" or "w" for the mode, respectively. Update
the man page to reflect that.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:58:11 +0000 (16:58 +0000)]
Add flags field to VCPUOP_set_singlsehot_timer.
Flag 'future' causes Xen to check if the timeout is in the past and
return -ETIME if so.
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:22:52 +0000 (16:22 +0000)]
xen: Fix VCPUOP_set_periodic_timer return value.
Clean up vcpu_op() code, and fix a couple of comments.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:36:24 +0000 (19:36 +0000)]
linux: Use new time hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:34:52 +0000 (19:34 +0000)]
xen: Debug 'q' key prints per-vcpu periodic timer info.
Do not enable periodic timer by default for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)]
linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:33:36 +0000 (18:33 +0000)]
dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.
Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:32:20 +0000 (18:32 +0000)]
xen/x86: add allocation success checks.
The necessary fix to arch_domain_create() was discovered by Gerd
Hoffmann, but apparently not submitted so far.
Also, adjust two error codes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)]
linux: fix condition for entering tickless state
I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return
value).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:47 +0000 (18:26 +0000)]
xen: New vcpu_op commands for setting periodic and single-shot timers.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:22 +0000 (18:26 +0000)]
Revert 14316 -- no need to fix maxvcpu domctl.
Ewan Mellor [Fri, 9 Mar 2007 16:04:19 +0000 (16:04 +0000)]
This patch fixes two problems with sending and receiving of (arrays of)
structures.
The first one allows to determine the size of a member when parsing a
'set'.
The cast in the second part fixes the address calculation when
serializing an array.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Tim Deegan [Fri, 9 Mar 2007 12:28:37 +0000 (12:28 +0000)]
[XEN] Fix 14315
We do need to be able to shadow_enable vcpu-less domains.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Fri, 9 Mar 2007 12:16:21 +0000 (12:16 +0000)]
[XEN] Don't let the tools take away all of a domain's vcpus.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Tim Deegan [Fri, 9 Mar 2007 12:10:29 +0000 (12:10 +0000)]
[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Signed-off-by: Tim Deegan <Tim.Deegan@xensourc.com>
Tim Deegan [Fri, 9 Mar 2007 11:45:49 +0000 (11:45 +0000)]
Merge
Tim Deegan [Fri, 9 Mar 2007 11:45:19 +0000 (11:45 +0000)]
[SVM] Don't free HSA and root vmcb when disabling SVM
since we're no longer allowed to free pages in an interrupt context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:44:31 +0000 (11:44 +0000)]
linux: Upgrade to latest Xen interface version (0x00030205).
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 9 Mar 2007 11:14:03 +0000 (11:14 +0000)]
Merge
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:11:59 +0000 (11:11 +0000)]
xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 9 Mar 2007 11:11:23 +0000 (11:11 +0000)]
[HVM] Revert thinko from 14291
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Fri, 9 Mar 2007 09:21:31 +0000 (09:21 +0000)]
pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 02:32:52 +0000 (02:32 +0000)]
Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ewan Mellor [Fri, 9 Mar 2007 01:59:59 +0000 (01:59 +0000)]
Improve error message.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Ewan Mellor [Fri, 9 Mar 2007 01:25:43 +0000 (01:25 +0000)]
Remove VDI.set_SR -- this was always unimplemented, and pretty mad.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 01:15:07 +0000 (01:15 +0000)]
Fancy headings.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 01:06:11 +0000 (01:06 +0000)]
Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 00:46:50 +0000 (00:46 +0000)]
Remove the word "Additional" from all the RPC subheadings -- we include all
the methods now, not just the non-accessors.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 00:44:10 +0000 (00:44 +0000)]
Added section on references vs UUIDs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 9 Mar 2007 00:35:29 +0000 (00:35 +0000)]
Changed the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
VIFs rather than VM and VMGroups, now that we've deleted VMGroups.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 8 Mar 2007 23:47:24 +0000 (23:47 +0000)]
Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 8 Mar 2007 23:22:56 +0000 (23:22 +0000)]
Added VM_BAD_POWER_STATE error code to VM.hard_shutdown.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 8 Mar 2007 23:16:34 +0000 (23:16 +0000)]
Remove crashdump.create -- this doesn't make sense.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 8 Mar 2007 22:33:47 +0000 (22:33 +0000)]
Fix duplicate consts around xc_error declarations.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Thu, 8 Mar 2007 16:41:32 +0000 (16:41 +0000)]
Merge
Tim Deegan [Thu, 8 Mar 2007 16:40:35 +0000 (16:40 +0000)]
[HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 8 Mar 2007 16:38:15 +0000 (16:38 +0000)]
[HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
by pausing the domain and pulling them through.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 8 Mar 2007 16:26:17 +0000 (16:26 +0000)]
linux: Remove an unused data structure from TPM frontend.
Some more code style changes.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Tim Deegan [Thu, 8 Mar 2007 16:20:01 +0000 (16:20 +0000)]
[XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 8 Mar 2007 16:18:50 +0000 (16:18 +0000)]
[XEN] Shadow: tidy up page_info before handing back to the allocator
which expects count_info fields to be zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Christian Limpach [Thu, 8 Mar 2007 15:51:32 +0000 (15:51 +0000)]
[xen] Update the hvm rtc clock state if the domain's time offset is changed.
The settimeoffset domctl had no effect on hvm domains since the offset
was only read in rtc_init which is done when the domain is created.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Ian Campbell [Thu, 8 Mar 2007 15:35:28 +0000 (15:35 +0000)]
[BUILDER]: Initialize code segment selectors in virtual IDT to 0.
These should not be set until the guest kernel kernel configures an
entry point otherwise the null_trap_bounce() check gets confused.
This change was made to the old domain builder in 12455:
3fa6635d04b9
but was lost in the transition to the new builder.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Thu, 8 Mar 2007 15:21:10 +0000 (15:21 +0000)]
xen: Provide notification of console updates via VIRQ.
The readconsolering capabilities provide the opportunity to
provide console output to other clients (remote systems,
logging systems, etc). This patchs adds the ability to generate
a notification of a change in the console buffer.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:57:33 +0000 (14:57 +0000)]
xend: Platform feature 'multiprocessor suspend' is x86-only for now.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 8 Mar 2007 14:37:21 +0000 (14:37 +0000)]
[HVM] Save/restore: back-port IDE controller save routine from current qemu.
Also, send an interrupt and an error code to the guest on restore if we
dropped an active request when we saved.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:29:09 +0000 (14:29 +0000)]
xen: Clean up heap allocator.
Move some common free/alloc code into core heap-allocator
functions. Make it clear that alloc/free can only ever be done outside
hardirq context (previously it was unsafe: could deadlock on heap_lock).
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 8 Mar 2007 10:54:56 +0000 (10:54 +0000)]
[HVM] Add support for hardware-assisted paging
as the second implementation of the generic paging-assistance interface.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:21:21 +0000 (16:21 +0000)]
linux: Restore time on APs if they are not hotplugged on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:16:09 +0000 (16:16 +0000)]
netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:00:47 +0000 (16:00 +0000)]
linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Wed, 7 Mar 2007 13:07:12 +0000 (13:07 +0000)]
[HVM] Disallow soft resets in the BIOS.
They aren't safe if the guest has brought up PV device drivers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 11:17:03 +0000 (11:17 +0000)]
xen: Replace stupid page_alloc fix.
I broke the 'correct' fix when I copied it out of an email. The
actual correct version, with an extra +1 in the for-loop header is
rather abusive of for loops, so I've changed it now to a do-while loop
and an extra comment so I don't screw up this backwards loop ever
again.
This version does actually boot. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:53:34 +0000 (10:53 +0000)]
dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:49:20 +0000 (10:49 +0000)]
tools: Clean up use of 'install' command.
- convert raw "install" command to use $(INSTALL)
- convert some $(INSTALL) to $(INSTALL_DATA) as appropriate
- modify the specific $(INSTALL) definitions to use -p.
Original patch by Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:37:05 +0000 (10:37 +0000)]
ioemu: Remove use of 'echo -c' in script.
I've no idea what it does, and it doesn't appear to be valid on some
systems. Use a more generic approach.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:13:39 +0000 (10:13 +0000)]
linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 7 Mar 2007 09:43:36 +0000 (09:43 +0000)]
A correct fix for page_alloc crash when Xen heap empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:51:42 +0000 (16:51 +0000)]
ioemu: Close file descriptors when forking processes.
Just leave stdin/stdout/stderr (and possibly tap fd) open.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:46:20 +0000 (16:46 +0000)]
Make Python tools (i.e., xend and pygrub) conditionally compiled.
Config option is PYTHON_TOOLS, default is 'y'.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
Tim Deegan [Tue, 6 Mar 2007 15:02:20 +0000 (15:02 +0000)]
[XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 6 Mar 2007 13:41:05 +0000 (13:41 +0000)]
linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 6 Mar 2007 11:53:37 +0000 (11:53 +0000)]
xend: more flexibility in gathering data from /proc/cpuinfo
Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Travis Betak [Mon, 5 Mar 2007 22:22:21 +0000 (16:22 -0600)]
[SVM] Clear VMCB's EFER.LME when guest disables paging
Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.
Signed-off-by: Travis Betak <travis.betak@amd.com>
Travis Betak [Mon, 5 Mar 2007 22:21:50 +0000 (16:21 -0600)]
[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).
Signed-off-by: Travis Betak <travis.betak@amd.com>
Travis Betak [Mon, 5 Mar 2007 22:21:11 +0000 (16:21 -0600)]
[SVM] Cleanup guest writes to EFER
Travis Betak [Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)]
[SVM] Return the shadow EFER value on guest EFER reads.
Return the shadow of the guest's EFER instead of the VMCB. This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).
Signed-off-by: Travis Betak <travis.betak@amd.com>
Travis Betak [Mon, 5 Mar 2007 22:17:25 +0000 (16:17 -0600)]
[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.
Signed-off-by: Travis Betak <travis.betak@amd.com>
Christian Limpach [Mon, 5 Mar 2007 22:42:13 +0000 (22:42 +0000)]
[tools] Import ptsname from its new location (after cset 14259:
7f0d8e3c538e).
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Mon, 5 Mar 2007 19:22:21 +0000 (19:22 +0000)]
[tools] Use auxbin.py to determine libpath at build time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>